syms theta4 theta5 theta6

T = Rz(theta4)*Rx(theta5)*Rz(theta6)